package com.example.bookstore.dao;

import com.example.bookstore.pojo.Book;

import java.sql.SQLException;
import java.util.List;

public interface BookDao {
    public int addBook(Book book) throws SQLException;
    public int deleteBookById(Integer id) throws SQLException;
    public int updateBook(Book book) throws SQLException;

    public Book queryBookById(Integer id) throws SQLException;

    public List<Book> queryBooks() throws SQLException;

    Integer queryForPageTotalCount() throws SQLException;

    List<Book> queryForPageItems(int begin, int pageSize) throws SQLException;
}
